package com.nowcoder.community.mapper;

import com.nowcoder.community.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 朱哥
 * @since 2025-02-27
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    List<Comment> selectCommentsByEntity(@Param("entityType") int entityType,@Param("entityId") Integer entityId,@Param("offset") int offset,@Param("limit") int limit);
}
